
<div id="loadingToast" v-show="show">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">
        <i class="weui-loading weui-icon_toast"></i>
        <p class="weui-toast__content">@{{ content }}</p>
    </div>
</div>

<script>
    var loading = new Vue({
        el: '#loadingToast',
       data:{
           show: false,
           content: '数据加载中'
       },
        methods: {
            showLoading: function(content){
                this.content = content ? content : this.content;
                this.show = true;
            }
        }
    });
</script>